import { tableServiceInterface } from "@/common/interface/table.interface";
import { $AddQuestion, $getQuestionList, $questionDelete, $QuestionDetail, $questionUpdate } from "@/apis/question/question";
import { addQuestionInterface, questionListInterface, questionUpdateInterface } from "@/apis/question/question.interface";

export default class ProblemService implements tableServiceInterface {
  async getTable(e: questionListInterface): Promise<any> {
    return $getQuestionList(e);
  }
  detail(id: number): Promise<any> {
    return $QuestionDetail(id);
  }
  add(e: addQuestionInterface): Promise<any> {
    return $AddQuestion(e);
  }
  edit(e: questionUpdateInterface): Promise<any> {
    return $questionUpdate(e)
  }
  deleteMultiple(e: Array<string>): Promise<any> {
    return $questionDelete(e);
  }
}